/*
class Program62
{
    static void Main()
    {

        Random random = new Random();
        List<int> randomNumbers=new List<int>();
        for (int i = 0; i < 100; i++)
        {
            randomNumbers.Add(random.Next(0, 1001));
        }

        Console.WriteLine("原数组如下");
        foreach (int number in randomNumbers)
        {
            Console.WriteLine(number);
        }
        
        List<int> sortedNumbers=randomNumbers.OrderByDescending(n => n).ToList();
        Console.WriteLine("排序后数组如下");
        foreach (int numbers in sortedNumbers)
        {
            Console.WriteLine(numbers);
        }
        Console.WriteLine("数组总和");
        int sum=randomNumbers.Sum();
        Console.WriteLine(sum);
        double average=sortedNumbers.Average();
        Console.WriteLine("数组平均值");
        Console.WriteLine(average);

    }
}
*/